import request from '@/utils/request'
/**
 * 用户登录
 * @param user
 * @returns
 */
export const login = (user: LoginUser) =>
  request<any, LoginResponse>({
    url: '/admin/login',
    method: 'POST',
    data: user,
  })

/**
 * 获取用户基本信息
 * @returns
 */
export const getUserInfo = () =>
  request<any, UserInfoResponse>({
    url: '/admin/userinfo',
    method: 'POST',
  })
